<template lang="pug">
  keep-alive
    kalix-table(bizKey="configteacher" title="阅卷人列表"
    v-bind:targetURL="targetURL" v-bind:tableFields="tableFields" bizSearch="ExamTeacherSearch"
    v-bind:btnList="btnList" v-bind:bizDialog="bizDialog" v-bind:toolbarBtnList="toolbarBtnList"
    ref="configTeacherTable")
</template>

<script type="text/ecmascript-6">
  import {ExamTeacherURL} from '../config.toml'
  import {ConfigTeacherBtnList} from './config'

  export default {
    name: 'kalix-exam-configteacher',
    data() {
      return {
        targetURL: ExamTeacherURL,
        btnList: ConfigTeacherBtnList,
        tableFields: [
          {prop: 'name', label: '阅卷人'},
          {prop: 'examName', label: '考试名'},
          {prop: 'subject', label: '考试科目'},
          {prop: 'teacherTypeName', label: '教师职务'},
          {prop: 'scoreWeight', label: '评分权重'}
        ],
        bizDialog: [
          {id: 'edit', dialog: 'ConfigTeacherEdit'}
        ],
        toolbarBtnList: [
          {id: 'add', isShow: false}
        ]
      }
    }
  }
</script>

<style scoped>

</style>
